﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            usbdisk u1 = new usbdisk("金士顿64G");
            u1.read();
            u1.write();
            mobdisk m1 = new mobdisk("三星500G");
            m1.read();
            m1.write();

            Console.WriteLine();
            Computer lenove = new Computer("联想");
            lenove.Start();
            lenove.Usb1 = u1;
            lenove.Usb2 = m1;
            lenove.ReadData();
            lenove.WriteData();
            lenove.End();
        }
    }
}
